﻿

using DataModels.Dto;
using DataModels.Dto.Livelihood;
using DataModels.Entities.Livelihood;
using Microsoft.AspNetCore.Mvc;
using Services.Decoration;
using Services.Home;

namespace PropertyManagementWebApi.Controllers.Livelihood
{
    public class DecorationRenovationController(DecorationRenovationService decorationRenovationService) : BaseController
    {
        protected readonly DecorationRenovationService _decorationRenovationService = decorationRenovationService;

        /// <summary>
        /// 获取案例类型列表
        /// </summary>
        /// <returns></returns>
        [HttpPost]
        public ResponseModel GetCaseTypelist()
        {
            return _decorationRenovationService.GetCaseTypelist();
        }
        /// <summary>
        /// 获得活动
        /// </summary>
        /// <param name="dot"></param>
        /// <returns></returns>
        [HttpPost]
        public ResponseModel GetDecorationRenovationPage(GetDecorationRenovationPageDot dot) {
            return _decorationRenovationService.GetDecorationRenovationPage(dot);
        }
        /// <summary>
        /// 获取意向类型
        /// </summary>
        /// <returns></returns>
        [HttpPost]
        public ResponseModel GetIntentionTypelist() {
            return _decorationRenovationService.GetIntentionTypelist();
        }
        /// <summary>
        /// 添加沟通意向
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        [HttpPost]
        public ResponseModel AddAppointment([FromBody] AddAppointmentRequest request)
        {
            return _decorationRenovationService.AddAppointment(request);
        }

    } 
}
